package com.example.teaknow.Dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.example.teaknow.Util.DBHelper;

/**
 * @Author: Stars
 */
public class FeedbackDao {
    private DBHelper dbHelper;

    public FeedbackDao(Context context) {
        dbHelper=new DBHelper(context,DBHelper.DATABASE_NAME,null,DBHelper.DATABASE_VERSION);
    }
    public void insertFeedback(String text){
        SQLiteDatabase db=dbHelper.getWritableDatabase();
        ContentValues values=new ContentValues();
        values.put("content",text);
        db.insert("feedback",null,values);
    }
}
